package com.service.iter;

import com.pojo.SalesOrder;
import com.pojo.requestjson.AddSalesProductDetailRequestJson;
import com.pojo.view.ShopCartView;
import com.util.Res;

import java.math.BigDecimal;
import java.util.List;

/**
 * 销售订单服务
 *
 * @author admin
 * @date 2023/06/20
 */
public interface ISaleOrderService {
    /**
     * 添加销售订单
     *
     * @return {@link Res}
     */
    Res addSaleOrder(AddSalesProductDetailRequestJson requestJson);

    Res addProductOrder(Long salesOrderId);

    BigDecimal calculateTotalPrice(List<ShopCartView> shopCartList);

    Res updateStatus(Long salesOrderId);

    List<SalesOrder> QueryByCustomPhone(String customPhone);
}
